package com.xw.mykotlin

import com.xw.kotlinlib.base.BaseRepository
import com.xw.kotlinlib.network.TResult

class MainRepository: BaseRepository() {

    suspend fun getCategory(member_id: String?,build_type: Int?): TResult<List<PCategory>> {
        return safeApiCall {
            val response = Api.getService().getCategory(member_id, build_type)
            executeResponse(response)
        }
    }
}